<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--    <button sec:authorize=hasAuthority("/insert")>新增</button>-->
<!--    <button sec:authorize=hasAuthority("/update")>修改</button>-->
<!--    <button sec:authorize=hasAuthority("/delete")>删除</button>-->
<!--    <button sec:authorize=hasAuthority("/select")>查询</button>-->

<!--        <button sec:authorize=hasRole("abc")>新增</button>-->
<!--        <button sec:authorize=hasRole("abc")>修改</button>-->
<!--        <button sec:authorize=hasRole("abc")>删除</button>-->
<!--        <button sec:authorize=hasRole("abc")>查询</button>-->

登录账号：<span sec:authentication="name"></span>
密码：<span sec:authentication="credentials"></span>
登录主体：<span sec:authentication="principal"></span>
权限：<span sec:authentication="authorities"></span>
sessionId:<span sec:authentication="details.sessionId"></span>
ip地址:<span sec:authentication="details.remoteAddress"></span>

</body>
</html>